﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Medianamik.Core.Interfaces;

namespace Medianamik.Core.Caching
{
    public class NullCacheProvider : INodeCacheProvider 
    {

        #region INodeCacheProvider Members

        public int GetNodeCount(IQueryDefinition pQueryDef)
        {
            var nodeCount = DALProviderManager.DALProvider.NodeDALProvider.GetNodeCount(pQueryDef);
            return nodeCount;
        }

        public IEnumerable<Node> GetNodes(IQueryDefinition pQueryDef)
        {
            return GetNodes(pQueryDef, false);
        }
        public IEnumerable<Node> GetNodes(IQueryDefinition pQueryDef, bool withDeletedNodes)
        {
            return DALProviderManager.DALProvider.NodeDALProvider.GetNodes(pQueryDef, withDeletedNodes);
            
            
        }

        #endregion
    }
}
